package modelo;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;



@Entity
@Table(name = "solicitud_subcomponente_actividad")
@IdClass(SolicitudSubcomponenteActividadId.class)
public class SolicitudSubcomponenteActividad {
	
	@Id
	@ManyToOne(optional = false)
	@JoinColumn(name = "solicitudsubcomponente_id", referencedColumnName = "id")
	private SolicitudSubComponente solicitudsubcomponente;
	
	@Id
	@ManyToOne(optional = false)
	@JoinColumn(name = "subcomponenteactividad_id", referencedColumnName = "id")
	private SubComponenteActividad subcomponenteactividad;

}
